#!/bin/bash

TargetFile=""
TargetSize=0

function dfs_find()
{
    local FileList=$(ls)
    
    for file in $FileList
    do
        if [ -f "$file" ]
        then
            FileSize=$(stat -c "%s" "$file")
            if [ "$FileSize" -gt "$TargetSize" ]
            then
                TargetFile=$(readlink -f "$file")
                TargetSize=$FileSize
            fi
        elif [ -d "$file" ]
        then
            cd "$file"
            dfs_find
            cd ..
        fi
    done
}

cd /home || exit 1
dfs_find
if [ -n "$TargetFile" ]
then
    echo "$TargetFile"
    ls -lh "$TargetFile"
fi